from google.appengine.ext import db
from site_model import site_model



class advert_model(db.Model):
    position = db.StringProperty()
    content = db.StringProperty(multiline=True)
    site = db.ReferenceProperty(site_model, collection_name='adverts')
    
class Advert():
    "Store Advert Data"
    
    # Advert position
    Position = ""
    
    # Advert code
    Code = ""
    
    Parent = ""
    
    def __init__(self, position, code, parent):
        self.Position = position
        self.Code = code
        self.Parent = parent
    
